<div class="left">
    {ms:channel type='parent'}
    <span class="title">
          <a href="{ms:global.url/}${field.typelink}"> ${field.typetitle} </a>
      </span>
    {/ms:channel}
    <#assign typetitle=field.typetitle>

    <#if field.leaf>
    {ms:channel type='level'}
    <a href="{ms:global.url/}${field.typelink}" class="<#if typetitle==field.typetitle>sub-title-sel<#else>sub-title</#if>"> ${field.typetitle} </a>
    {/ms:channel}
    <#else>
    {ms:channel type='son'}
    <a href="{ms:global.url/}${field.typelink}" class="<#if typetitle==field.typetitle>sub-title-sel<#else>sub-title</#if>"> ${field.typetitle} </a>
    {/ms:channel}
</#if>
</div>